package com.czk.constant;

import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.hbase.HBaseConfiguration;

/**
 * @Author:ChenZhangKun
 * @Date: 2021/12/2 16:27
 */
public class Constants {

    public static Configuration configuration;
    public static final String NAME_SPACE = "weibo";
    // 微博内容表
    public static final String CONTENT_TABLE = "weibo:content";
    public static final String CONTENT_INFO_CF = "info";
    public static final int CONTENT_TABLE_VERSIONS = 1;
    // 用户关系表
    public static final String RELATION_TABLE = "weibo:relation";
    public static final String RELATION_INFO_CF1 = "attends";
    public static final String RELATION_INFO_CF2 = "fans";
    public static final int RELATION_TABLE_VERSIONS = 1;
    // 收件箱表
    public static final String INBOX_TABLE = "weibo:inbox";
    public static final String INBOX_INFO_CF = "info";
    public static final int INBOX_TABLE_VERSIONS = 1;

    //
    static {
        configuration = HBaseConfiguration.create();
        // zookeeper连接
        configuration.set("hbase.zookeeper.quorum", "192.168.25.133");
        // 端口
        configuration.set("hbase.zookeeper.property.clientPort", "2181");
    }
}
